<?php

    header("Content-type:text/html;charset=utf-8");

    $host = "localhost:3306";
    $username = "root";
    $password = "root";

    $con = mysql_connect($host, $username, $password);
    if(!$con){
        die('Couldn not connect: '.mysql_error());
    }
    echo "数据库连接成功";

    mysql_connect _db("project", $con);
?>